sum=0
sum1=1
i=1
while i<=10:
    sum1=sum1*i
    sum=sum1+sum
    i=i+1
    print(sum)
